package com.zbl.zblproject.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbl.zblproject.core.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/9/18
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("SELECT username FROM sys_user WHERE user_id = #{id}")
    String selectNameById(@Param("id") String id);
}
